package com.qikux.utils;

public class NicknameUtils {
    /**
     * 随机生成默认风格的昵称
     * @return
     */
    public static String generatorNickName() {

        return "Haredot" + randomNum(5);
    }

    public static String randomNum(int n) {
        StringBuilder sb = new StringBuilder();
        for (int i = 1; i <= n; i++) {
            int k = (int) (Math.random() * 10);
            sb.append(k);
        }

        return sb.toString();
    }
}
